set(zhy_muduo_base_HEADS
	Base.h
	CurrentThread.h
	ScopeGuard.h
	Mutex.h
	Condition.h
	BlockingQueue.h
	BoundedBlockingQueue.h
	Timestamp.h
	Condition.h
	ThreadPool.h
	Thread.h
	CountDownLatch.h
	EndianZhy.h
	Buffer.h
  )

set(zhy_muduo_base_SRCS
	Timestamp.cpp
	Condition.cpp
	ThreadPool.cpp
	Thread.cpp
	CountDownLatch.cpp
	Buffer.cpp
  )

add_library(zhy_muduo_base ${zhy_muduo_base_SRCS} ${zhy_muduo_base_HEADS})
set_property(TARGET zhy_muduo_base PROPERTY FOLDER "AvLibs")


IF(WIN32)
target_link_libraries(zhy_muduo_base pthreadVC2)
ELSEIF(UNIX)
target_link_libraries(zhy_muduo_base pthread rt)
ENDIF()


#file(GLOB HEADERS "*.h")
#install(FILES ${HEADERS} DESTINATION include/muduo/base)
